package com.xxgc.eow.service;

import com.xxgc.eow.entity.CollectArticleSecondary;
import com.xxgc.eow.entity.Collectarticle;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 收藏文章表 服务类
 * </p>
 *
 * @author Mr.Abel
 * @since 2023-05-24
 */
public interface ICollectarticleService extends IService<Collectarticle> {

    List<Collectarticle> getAllCollectArticleByUserId(Integer userId);

    int insertCollectArticle(CollectArticleSecondary collectArticleSecondary);

    Integer getArticleById(int articleId);

    int updateArticleArtucke( int articleId,int collectNum);

    int delArticleCollect(CollectArticleSecondary collectArticleSecondary);

    CollectArticleSecondary selectTfData(CollectArticleSecondary collectArticleSecondary);
}
